package com.hx.hospital.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * yuyue实体类
 * @author Administrator
 *
 */
@Table(name="yuyue")
@Data
public class Yuyue implements Serializable{

	@Id
	private Long id;//id

	@Column(name = "doctor_id")
	private Long doctorId;//医生号

	private String doctorName;//医生
	private String doctorPosition;
	private String detailDepartmentName;
	private String floor;



	@Column(name = "doctor_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
	private Date doctorDate;//日期

	@Column(name = "reception_capacity")
	private Long  receptionCapacity;//可接待人数

	@Column(name = "date_state")
	private Long dateState;//日期状态

	@Column(name = "user_id")
	private Long userId;
	private String userName;

	@Column(name = "yuyue_state")
	private Long yuyueState;//预约状态 0-预约成功  1-已取消预约 2-已完成


	

	
}
